package com.zly.lab.blog.service.impl;

import com.zly.lab.blog.entity.Statistic;
import com.zly.lab.blog.mapper.StatisticMapper;
import com.zly.lab.blog.service.StatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticServiceImpl implements StatisticService {
    @Autowired
    private StatisticMapper statisticMapper;

    /**
     * 获取热点数据
     *
     * @return List
     */
    public List<Statistic> getHeatData() {
        return statisticMapper.getHeatData();
    }
}
